package com.ph.irp.base.salespricepolicy.service;

import java.util.List;

import com.ph.irp.model.PBaseSalespricepolicy;

public interface SalesPricePolicyService {
	
	/*
	 * 查询销售价格政策
	 */
	public List<PBaseSalespricepolicy> getSalesPricePolicyList(PBaseSalespricepolicy salespricepolicyModel) throws Throwable;
	
	/*
	 * 按照销售价格政策ID查询
	 */
	public PBaseSalespricepolicy getSalesPricePolicyById(Integer salesPricePolicyId) throws Throwable;
	
	/*
	 * 添加销售价格政策记录
	 */
	public void addSalesPricePolicy(PBaseSalespricepolicy salespricepolicyModel) throws Throwable;
	
	/*
	 * 更新销售价格政策记录
	 */
	public void updateSalesPricePolicy(PBaseSalespricepolicy salespricepolicyModel) throws Throwable;
	
	/*
	 * 删除选中记录
	 */
	public void deleteSalesPricePolicy(Integer salesPricePolicyId) throws Throwable;
	
	public List<PBaseSalespricepolicy> getByName(String salespricepolicyName) throws Throwable;
	
	public List<PBaseSalespricepolicy> getByCode(String salespricepolicyCode) throws Throwable;
	
	public List<PBaseSalespricepolicy> getByNameAndCode(String salespricepolicyName,String salespricepolicyCode) throws Throwable;

}
